package com.huimin.merchant.convert;

import com.huimin.merchant.dto.MerchantDTO;
import com.huimin.merchant.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author ymx
 * @date 2020-12-01  23:20
 */
@Mapper
public interface MerchantRegisterConvert {

	MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

	/**
	 * vo转换成dto
	 */
	MerchantDTO vo2dto(MerchantRegisterVO vo);

	/**
	 * dto换成vo
	 */
	MerchantRegisterVO dto2vo(MerchantDTO dto);
}
